package com.api.city;

import com.last.entity.City;
import com.last.entity.RoomInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//房间详情相关api
@Component
@FeignClient("homestay-merchant")
@RequestMapping("/homestayMerchant/room")
public interface CityApi {

    // 暴露获取所有city接口
    @RequestMapping("getAllCity")
    public List<City> getAllCity();

    // 暴露房间信息的接口
    @RequestMapping("roomDetail")
    public RoomInfo getRoomInfoDetail(@RequestParam("roomId") Integer roomId);

    // 暴露房间列表的接口
    @RequestMapping("roomList")
    public List<RoomInfo> getHousingDetail(@RequestParam("homeId") Integer homeId);
}
